package uoc.tdp.pac4.exception;

import javax.swing.JOptionPane;

import uoc.tdp.pac4.common.utilities.TDSLanguageUtils;

/**
 * Classe MangerException gestiona les excepacions 
 * @author Bitech
 *
 */
public class EControlRRHHException extends Exception {

	private static final long serialVersionUID = 1L;
	
	public static final String DRIVER_NOT_FOUND = TDSLanguageUtils.getMessage("DRIVER_NOT_FOUND");
	public static final String CONFPROP_FILE_NOT_FOUND = TDSLanguageUtils.getMessage("CONFPROP_FILE_NOT_FOUND");
	public static final String INCORRECT_PROPERTIES_FILE = TDSLanguageUtils.getMessage("INCORRECT_PROPERTIES_FILE");
	public static final String ERROR_CONNECTION_BBDD = TDSLanguageUtils.getMessage("ERROR_CONNECTION_BBDD");
	public static final String UNKNOWN_EXCEPTION = TDSLanguageUtils.getMessage("UNKNOWN_EXCEPTION");
	public static final String SQL_NO_DATA_FOUND = TDSLanguageUtils.getMessage("SQL_NO_DATA_FOUND");
	public static final String ERROR_SQL_INSERT = TDSLanguageUtils.getMessage("ERROR_SQL_INSERT");
	public static final String ERROR_SQL_KEY_OBTAINED = TDSLanguageUtils.getMessage("ERROR_SQL_KEY_OBTAINED");
	public static final String UNKNOW_SQL_ERROR = TDSLanguageUtils.getMessage("UNKNOW_SQL_ERROR");
	public static final String ERROR_CONN_CLIENT_SERVER = TDSLanguageUtils.getMessage("ERROR_CONN_CLIENT_SERVER");
	public static final String ERROR_NOT_BOUND = TDSLanguageUtils.getMessage("ERROR_NOT_BOUND");
	public static final String ERR_REMOTE_PROCESS = TDSLanguageUtils.getMessage("ERR_REMOTE_PROCESS");
	public static final String UNKNOW_ERROR = TDSLanguageUtils.getMessage("UNKNOW_ERROR");
	public static final String STOPPING_SERVER_ERROR = TDSLanguageUtils.getMessage("STOPPING_SERVER_ERROR");
	public static final String STARTING_SERVER_ERROR = TDSLanguageUtils.getMessage("STARTING_SERVER_ERROR");
    
	public EControlRRHHException() { JOptionPane.showMessageDialog(null, UNKNOWN_EXCEPTION, "Error", 0); }
	
	public EControlRRHHException(String paramString) { JOptionPane.showMessageDialog(null, paramString, "Error", 0); }

}